package com.fqgame.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户积分记录实体类
 */
@Data
@TableName("points_record")
public class PointsRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 积分变动
     */
    private Integer points;

    /**
     * 变动类型：1-增加，2-减少
     */
    private Integer type;

    /**
     * 变动原因
     */
    private String reason;

    /**
     * 业务ID
     */
    private String businessId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}